package com.wondertek.service.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wondertek.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.List;


/**
 * @author xqs
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_dict")
public class SysDictPo extends BaseEntity {

    /**
     * 父级id
     */
    @Schema(name = "parentId",description = "父级id")
    private String parentId;

    /**
     * 字典名称
     */
    @Schema(name = "dictName",description = "字典名称")
    private String dictName;

    /**
     * 字典编码
     */
    @Schema(name = "dictCode",description = "字典编码")
    private String dictCode;

    /**
     * 字典数据值
     */
    @Schema(name = "dictValue",description = "字典数据值")
    private String dictValue;

    /**
     * 排序
     */
    @Schema(name = "sort",description = "排序")
    private Integer sort;

    /**
     * 启用 ENABLE 关闭 DISABLE
     */
    @Schema(name = "status",description = "启用 ENABLE 关闭 DISABLE")
    private String status;

    //************ 以下非数据库字段 ***************

    @TableField(exist = false)
    @Schema(name = "children",description = "子字典")
    private List<SysDictPo> children = new ArrayList<>();
}
